package com.yyge.controller.articleType.req;/**
 * @program: js-hd
 * @description: 文章分类新增接收对象
 * @author: yyf
 * @create: 2024-01-25 09:47
 **/

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Map;

@Data
@ApiModel(value = "文章分类新增接收对象",description = "文章分类新增接收对象")
public class ArticleTypeAddReq implements Serializable {
    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(min = 2,max = 20,message = "分类名称不合法")
    private String name;

    private Map<String, Object> params;
    private static final long serialVersionUID = 1L;
}
